
#ifndef DISKUTILS_H_
#define DISKUTILS_H_

#include <iostream>
#include <string>
#include <iomanip>
#include <fstream>
#include <vector>
#include <sstream>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

//TODO add #include "Log.h"???

using namespace std;

class DiskUtils {
public:
	DiskUtils();
	virtual ~DiskUtils();

/*	static int getInt(unsigned char* pb,int start);

	static void intToByte(int val, unsigned char* pBytes,int start);

	static void tokenize(const string& str, vector<string>& tokens, const string& delimiters);

	static unsigned char* initBytes(int size);*/
	static void readFromDisk(char* buffer, int offset, int size);
	static int readFromDisk(unsigned char* buffer, int offset, int size);
	static void readFromDisk(int* buffer, int offset, int size);
	static void writeToDisk(int* buffer, int offset ,int size);
	static int writeToDisk(unsigned char*, int offset ,int size);
	static void eraseBlock(int offset, int blockSize);
};

#endif /* DISKUTILS_H_ */
